<?php
	/* 
	--------------------------------------------------------------
	gm_meta_options.php 2011-03-11 pt
	Gambio GmbH
	http://www.gambio.de
	Copyright (c) 2011 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
	--------------------------------------------------------------
	*/
	
	defined('_VALID_XTC') or die('Direct Access to this location is not allowed.');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
	<tr>
		<td valign="top" align="left" class="main">
			<b><?php echo MENU_TITLE_GM_META_OPTIONS . constant('MENU_TITLE_GM_META_OPTIONS_' . $lang_id); ?></b> 
		</td>
		<td valign="top" align="right" class="main">
			<?php 
				echo gm_get_lang_link('gm_meta.php', 'gm_meta_options', '');
			?>
		</td>
	</tr>
	<?php if(!empty($gm_status)) { ?>
	<tr>
		<td valign="top" align="left" class="main">
			<?php echo $gm_status; ?>
		</td>
		<td valign="top" align="right" class="main">
			&nbsp;
		</td>
	</tr>
	<?php } ?>
</table>
<br />
<form method="post" action="<?php echo xtc_href_link('gm_meta.php', 'action=' . $_GET['action'] . '&gm_options=1&lang_id=' . $lang_id); ?>">
	<table border="0" cellspacing="0" cellpadding="2" id="gm_table">	
		<tr>
			<td valign="middle" align="left" class="main" width="250">
				<?php echo GM_TITLE_USE_STANDARD_META_TITLE; ?>
			</td>
			<td valign="middle" align="left" class="main">
				<?php
					echo GM_TITLE_USE_STANDARD_META_TITLE_YES; 
				?>
				<input type="radio" value="1" name="GM_TITLE_USE_STANDARD_META_TITLE" <?php if(gm_get_conf('GM_TITLE_USE_STANDARD_META_TITLE') == '1') echo 'checked="checked"'; ?>>
				<?php
					echo GM_TITLE_USE_STANDARD_META_TITLE_NO;
				?>
				<input type="radio" value="0" name="GM_TITLE_USE_STANDARD_META_TITLE" <?php if(gm_get_conf('GM_TITLE_USE_STANDARD_META_TITLE') == '0') echo 'checked="checked"'; ?>>
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main" width="250">
				<?php echo GM_TITLE_SHOW_STANDARD_META_TITLE; ?>
			</td>
			<td valign="middle" align="left" class="main">
				<select style="width:300px;" name="GM_TITLE_SHOW_STANDARD_META_TITLE">
					<?php 
						if(gm_get_conf('GM_TITLE_SHOW_STANDARD_META_TITLE') == 'before')
						{
					?>
					<option value="before" selected="selected"><?php echo GM_TITLE_SHOW_STANDARD_META_TITLE_BEFORE; ?></option>
					<option value="after"><?php echo GM_TITLE_SHOW_STANDARD_META_TITLE_AFTER; ?></option>
					<?php 
						}
						else
						{
					?>
						<option value="before"><?php echo GM_TITLE_SHOW_STANDARD_META_TITLE_BEFORE; ?></option>
						<option value="after" selected="selected"><?php echo GM_TITLE_SHOW_STANDARD_META_TITLE_AFTER; ?></option>
					<?php 
						}
					?>
				</select>
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main" width="250">
				<?php echo GM_TITLE_STANDARD_META_TITLE; ?>
			</td>
			<td valign="middle" align="left" class="main">
				<?php
					echo xtc_draw_input_field('GM_TITLE_STANDARD_META_TITLE', gm_get_content('GM_TITLE_STANDARD_META_TITLE', $lang_id), 'style="width:300px"'); 	
				?>
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main" width="250">
				<?php echo GM_TITLE_STANDARD_META_TITLE_SEPARATOR; ?>
			</td>
			<td valign="middle" align="left" class="main">
				<input type="text" name="GM_TITLE_STANDARD_META_TITLE_SEPARATOR" value="<?php echo str_replace(' ', '&nbsp;', gm_get_content('GM_TITLE_STANDARD_META_TITLE_SEPARATOR', $lang_id)); ?>" style="width:300px" />
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main" colspan="2">	
				&nbsp;
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main" colspan="2">				
				<input type="hidden" name="gm_lang" value="<?php echo $lang_id; ?>">																									 
				<input class="button" type="submit" name="gm_submit" value="<?php echo BUTTON_SAVE;?>">																									 
			</td>
		</tr>
	</table>
</form>